package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the ticci_acce_x_serv database table.
 * 
 */
@Entity
@Table(name="ticci_acce_x_serv")
@NamedQuery(name="TicciAcceXServ.findAll", query="SELECT t FROM TicciAcceXServ t")
public class TicciAcceXServ implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private TicciAcceXServPK id;

	@Column(name="ACSE_ENTREGADO")
	private byte acseEntregado;

	//bi-directional many-to-one association to TicciMaestro
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false),
		@JoinColumn(name="MAES_ACCESORIO", referencedColumnName="MAES_CONS", insertable=false, updatable=false)
		})
	private TicciMaestro ticciMaestro;

	//bi-directional many-to-one association to TicciServicio
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="AUTO_CONS", referencedColumnName="AUTO_CONS", insertable=false, updatable=false),
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false),
		@JoinColumn(name="SERV_CONS", referencedColumnName="SERV_CONS", insertable=false, updatable=false)
		})
	private TicciServicio ticciServicio;

	public TicciAcceXServ() {
	}

	public TicciAcceXServPK getId() {
		return this.id;
	}

	public void setId(TicciAcceXServPK id) {
		this.id = id;
	}

	public byte getAcseEntregado() {
		return this.acseEntregado;
	}

	public void setAcseEntregado(byte acseEntregado) {
		this.acseEntregado = acseEntregado;
	}

	public TicciMaestro getTicciMaestro() {
		return this.ticciMaestro;
	}

	public void setTicciMaestro(TicciMaestro ticciMaestro) {
		this.ticciMaestro = ticciMaestro;
	}

	public TicciServicio getTicciServicio() {
		return this.ticciServicio;
	}

	public void setTicciServicio(TicciServicio ticciServicio) {
		this.ticciServicio = ticciServicio;
	}

}